<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>库存列表（含成本）</title>
	<include file="Public:header" />
	<style type="text/css">
		.input{width:150px;border:1px solid #ccc;padding:2px;}
	</style>
	<script type="text/javascript">
		var actflg="{:C('URL_MODEL')}"=="0"?"&":"?";		
		
        window.onload=function()
		{
			window.print();
		}
        /*
        $(document).ready(function(){
			$('#misone_list_table').datagrid({
				//url: '///',
				//title: 'DataGrid',
				//width: 800,
				//height: 220,
				fitColumns: true,
				nowrap:false,
				rownumbers:true,
				showFooter:false,
				columns:[[
					{field:'item01',title:'入库日期',width:80},
					{field:'item02',title:'仓库',width:60},
					{field:'item03',title:'商品名称',width:150}, //,align:'right'
					{field:'item04',title:'编号/条码',width:80},
					{field:'item05',title:'单位',width:50},
					{field:'item06',title:'批号',width:80},
					{field:'item07',title:'有效期',width:80,align:'center'},
					{field:'item08',title:'批准文号',width:80,align:'center'},
					{field:'item09',title:'规格',width:80},
                    {field:'item10',title:'产地',width:80},
                    {field:'item11',title:'库存数量',width:60},
                    {field:'item12',title:'价值',width:60},
                    {field:'item13',title:'单位成本',width:60}
				]]
			});
            
            //window.print();
		});
        */
	</script>
</head>
<body class="">
	
	<div class=" space-out-10px">
	
    
    <table id="misone_list_table" cellpadding="3" cellspacing="0" border="1" width="100%" style="width:100%;"><tbody>
    
    <tr>
		<td field="item01">入库日期</td>
		<td field="item02">仓库</td>
		<td field="item03">商品名称</td>
		<td field="item04">编号/条码</td>
		<td field="item05">单位</td>
		<td field="item06">批号</td>
		<td field="item07">有效期</td>
		<td field="item08">批准文号</td>
		<td field="item09">规格</td>
        <td field="item10">产地</td>
        <td field="item11">库存数量</td>
        <td field="item13">单位成本</td>
        <td field="item12">价值</td>
        <td field="item12">销售价格</td>
	</tr>
	<volist name="datalist" id="datalist">
	<tr>
		<td field="item01">{$datalist.fadate|date='Y-m-d',###}</td>
		<td field="item02">{$datalist.wh_title}</td>
		<td field="item03">{$datalist.stk_title}</td>
		<td field="item04">{$datalist.stk_code}</td>
		<td field="item05">{$datalist.stk_uom}</td>
		<td field="item06">{$datalist.batch_no}</td>
		<td field="item07">{$datalist.expiry_date|get_date='Y-m-d',###}</td>
		<td field="item08">{$datalist.approval_no}</td>
		<td field="item09">{$datalist.spec}</td>
        <td field="item10">{$datalist.madein}</td>
        <td field="item11">{$datalist.open_qty|get_round=###,6}</td>
        <td field="item13"><php>echo get_round((double)$datalist['open_amount']/(double)$datalist['open_qty']);</php></td>
        <td field="item12">{$datalist.open_amount|get_round=###,6}</td>
        <td field="item12">{$datalist.stk_price_sales|get_round=###,6}</td>
	</tr>
	</volist>
    
    <tr>
		<td field="item01">总计</td>
		<td field="item02">&nbsp;</td>
		<td field="item03">&nbsp;</td>
		<td field="item04">&nbsp;</td>
		<td field="item05">&nbsp;</td>
		<td field="item06">&nbsp;</td>
		<td field="item07">&nbsp;</td>
		<td field="item08">&nbsp;</td>
		<td field="item09">&nbsp;</td>
        <td field="item10">&nbsp;</td>
        <td field="item11">{$stk_total.open_qty|get_round=###,6}</td>
        <td field="item13">&nbsp;</td>
        <td field="item12">{$stk_total.open_amount|get_round=###,6}</td>        
        <td field="item13">&nbsp;</td>
	</tr>
    
	</tbody></table>    
    
	
	</div>
	

</body>
</html>
